package com.securitydome09.pojo;

import java.io.Serializable;
import java.util.Date;

public class SerializableRememberMeToken implements Serializable {
    private String username;
    private String series;
    private String tokenValue;
    private Date date;

    public SerializableRememberMeToken(String username, String series, String tokenValue, Date date) {
        this.username = username;
        this.series = series;
        this.tokenValue = tokenValue;
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public String getTokenValue() {
        return tokenValue;
    }

    public void setTokenValue(String tokenValue) {
        this.tokenValue = tokenValue;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "SerializableRememberMeToken{" +
                "date=" + date +
                ", series='" + series + '\'' +
                ", tokenValue='" + tokenValue + '\'' +
                ", username='" + username + '\'' +
                '}';
    }
}
